package com.koala.auth.feign.fallback;

import com.koala.auth.feign.UserService;
import com.koala.common.core.utils.RT;
import com.koala.upms.api.vo.UserInfo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class UserServiceFallbackImpl implements UserService {

	@Setter
	private Throwable cause;

	@Override
	public RT<UserInfo> findUserByUsername(String username) {
		log.error("feign 查询用户信息失败:{}", username, cause);
		return null;
	}

	@Override
	public RT<UserInfo> info() {
		return null;
	}

}
